<?php
	class khoibs
	{
		public $MaKhoi = 0;
		public $TenKhoi = "";
		
		public function Add()
		{
			$db = new khoidb();
			return $db->Add($this->TenKhoi);
		}
		
		public function Delete()
		{
			$db = new khoidb();
			return $db->Delete($this->MaKhoi);
		}
		
		public function Update()
		{
			$db = new khoidb();
			return $db->Update($this->MaKhoi, $this->TenKhoi);
		}
		
		public function GetList()
		{
			$db = new khoidb();
			return $db->GetList($this->MaKhoi, $this->TenKhoi);
		}
		public function Find()
		{
			$db = new khoidb();
			return $db->Find($this->TenKhoi);
		}
	}
?>